package org.elephas.webapp.frontend.resource;

import org.apache.wicket.Resource;
import org.apache.wicket.ResourceReference;
import org.elephas.webapp.model.DetachableBlogModel;

public class BlogFeedResourceReference extends ResourceReference {
	private static final long serialVersionUID = 1L;

	private final DetachableBlogModel blogModel;

	public BlogFeedResourceReference(DetachableBlogModel blogModel) {
		super(blogModel.getObject().getName());
		this.blogModel = blogModel;
	}

	@Override
	protected Resource newResource() {
		return new BlogFeedResource(blogModel);
	}

}
